{% extends "status/base.html" %}
{% block title %}电影点击排行 {% endblock %}

{% block body %}
<div style="text-align: center; width: 700px"><h2>电影点击排行</h2></div>
<div>
    {% if movies %}
        <table style="background-color: #ccf">
            <tr><th>电影名称</th><th class="num_col">点击次数</th></tr>
            {% for m,c in movies %}
                <tr><td>{{ m }}</td><td class="num_col">{{ c }}</td></tr>
            {% endfor %}
        </table>
        <div><span><a href="{{ url_for('.fav_mov') }}">首页</a></span>&nbsp&nbsp<span><a href="{{
                    url_for('.fav_mov', start=next)
                    }}">下一页</a></div>
    {% else %}
        <div>无数据</div>
        <div><a href="{{ url_for('.fav_mov') }}">首页</a></div>
    {% endif %}
    </div>
    <div style="height: 20px"></div>
{% endblock %}
